<template>
  <div class="container" v-html="value"></div>
</template>
<script>
export default {
  data(){
      return{
        value:'',
     }
  },
   mounted(){
    this.getINformation()
  },
  methods:{
      getINformation(){
          this.$axios.post('http://www.chenyekeji.com/bsti-rbac/wechat/getCourseWareVo?tid='+this.$route.query.tid)
          .then((res) => {
              console.log(res)
               if(res.data.data==""){
                   this.value="页面暂无数据"
               }else{
                  this.value=res.data.data[0].courseWareContent
               }
          })
      }
  }
}
</script>
<style scoped>
 .container{
     width: 100%;
     padding:20px 40px;
     font-size: 26px;
     min-height: 100%;
     text-align: left;
 }
</style>

